package Demo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘远望
 * Date: 2025-03-12
 * Time: 20:42
 */
public class Test {
    public static void main(String[] args) {
        Cat cat = new Cat();
        cat.name = "小花";
        cat.age = 1;
        cat.eat();
        cat.mimi();
        System.out.println("===============");
        Dog dog = new Dog();
        dog.name = "小黄";
        dog.age = 2;
        dog.eat();
        dog.bark();
    }
}
